import { t } from 'i18next'
import { IPerson } from './translator'
import { Table, ColumnProps } from '@kedacom/react-next'
import React, { useMemo } from 'react'
export const Caller = ({ rollcallPersons }: { rollcallPersons: IPerson[] }) => {
	const Columns = useMemo<ColumnProps<IPerson>[]>(
		() => [
			{
				dataKey: 'personName',
				title: t('点名人'),
			},
		],
		[]
	)
	return (
		<Table
			height={488}
			data={rollcallPersons}
			columns={Columns}
			showOrderColumn={false}
			showSelectColumn={false}
			i18n={{ order: t('序号') }}
			nodata={t('暂无数据')}
		/>
	)
}
